import request from '@/utils/request'
const req = request.service;

export default{
    queryMenu(data){

        const postData = data || {}
        return req({
            url: "/menu",
            method: 'post',
            data:postData
        })
    },
    delMenu(data){
        return req({
            url: '/menu/delete',
            method: 'post',
            data:data
        })
    },
    saveMenu(data){
        return req({
            url: data.cdbh === ''?'/menu/add':'/menu/save',
            method: 'post',
            data:data
        })
    },
}